cmake_minimum_required (VERSION 3.0)
 
project (hello)
message(${PROJECT_NAME})
message(${PROJECT_SOURCE_DIR})
#设置执行文件输出路径
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#包含所有源文件
file(GLOB SRC src/main.cpp
                src/点到直线的距离.cpp
                src/顺序表.cpp
                src/tadshunxu.cpp
                src/link.cpp)
#包含所有头文件
include_directories(${PROJECT_SOURCE_DIR}/src/header)
#生成执行文件
add_executable(${PROJECT_NAME} ${SRC})

